﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CMS.BLL;

public partial class news_mini_TrainDetail : System.Web.UI.Page
{
    public string trid = string.Empty;
    public string title = string.Empty;
    public string begin = string.Empty;
    public string end = string.Empty;
    public string lec = string.Empty;
    public string percount = string.Empty;
    public string pw = string.Empty;
    public string add = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request["trid"] != null && Request["trid"].ToString() != "")
                trid = Request["trid"].ToString();

            if (trid != string.Empty && trid != "")
            {
                TrainBLL tdal = new TrainBLL();
                string res = tdal.GteTrainById(trid);
                //分解res
                String[] train = res.Split('&');
                 
                title = train[1].ToString();
                begin = train[2].ToString();
                end = train[3].ToString();
                lec = train[4].ToString();
                percount = train[5].ToString();
                add = train[6].ToString();
                pw = train[7].ToString();                
            }
        }
    }

    protected void btnBack_Click(object sender, EventArgs e)
    {
        Response.Redirect("TrainManage.aspx?page=" + Request["page"]);
    }
}